// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package shell collect useful shell cmd by Leo Yang.
// It aims to cover most of the best tools
//
package tcpip

var (
	CaptureFullPacket         = `sudo tcpdump -s 0 -i eth0 tcp -w dump.pcap`
	CaptureFullPacketWithHost = `sudo tcpdump -s 0 -i eth0 host 218.244.150.208 -w aliyun.pcap`
	CapturePacketToBaidu      = `sudo tcpdump -i eth0 dst 115.239.210.27 and port 80 -w baidu.pcap`

	DisplayTcpdumpFile = `capinfos aliyun.website.pcap`
)

//
// Gui Tool: CocoaPacketAnalyzer  (Mac)
//
func ViewTcpdumpPacketTools()

// http://packetlife.net/blog/2011/apr/11/extracting-packets-large-captures/
//  $capinfos aliyun.website.pcap
//  File name:           aliyun.website.pcap
//  File type:           Wireshark/tcpdump/... - pcap
//  File encapsulation:  Ethernet
//  Packet size limit:   file hdr: 65535 bytes
//  Number of packets:   3,281
//  File size:           1,996 kB
//  Data size:           1,944 kB
//  Capture duration:    100 seconds
//  Start time:          Tue Apr 22 10:30:32 2014
//  End time:            Tue Apr 22 10:32:12 2014
//  Data byte rate:      19 kBps
//  Data bit rate:       154 kbps
//  Average packet size: 592.60 bytes
//  Average packet rate: 32 packets/sec
//  SHA1:                abb4edf1b2380566c429624e7457db0ee6d8b65c
//  RIPEMD160:           7db975369c983df2e9e3fc9dcf8d7ef3262db3ea
//  MD5:                 f5892c5cb68b27f13fddac06d03de53b
//  Strict time order:   True
func DisplayTcpdumpFileTools()
